package com.chinazyjr.framework.common.component.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chinazyjr.framework.common.component.ZookeeperService;
import com.chinazyjr.framework.common.zookeeper.ZookeeperFacade;
import com.sys.midware.zookeeper.curator.ZKRegistryCenter;

@Service
public class ZookeeperServiceImpl implements ZookeeperService {
	
	@Autowired
	ZookeeperFacade zookeeperFacade;

	@SuppressWarnings("static-access")
	@Override
	public ZKRegistryCenter getZKClient(String namespace) {
		
		return zookeeperFacade.getZKClient(namespace);
	}
	
	
}
